import org.omg.CORBA.ORB;

import java.util.Scanner;

public class triangle {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请分别输入需要判断的三角形的三边：");
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        double c = scanner.nextDouble();
        double s;
        if((a*a == b*b + c*c)||(b*b == a*a + c*c)||(c*c == b*b + a*a)){
            System.out.println("该三角形为直角三角形！三边分别为："+ a+ " " + b + " " + c);
            double p = (a+b+c)/2;
            s = Math.sqrt(p*(p-a)*(p-b)*(p-c));
            System.out.println("该三角形的面积为："+s);
        }else {
            System.out.println("该三角形不是直角三角形！");
        }
    }
}
